﻿using AttributeRouting.Web.Http;
//using log4net;
using System;
using System.Web;
using System.Web.Security;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using System.Data;
using System.Data.SqlClient;
using Water.Model;

namespace Water.RestService.Controllers
{
    public class MeterController : ApiController
    {
        private Meter me;

        [GET("GetMeterByEpcNo/{epcno}")]
        public IList<Meter> GetMeterByEpcNo(string epcno)
        {
            me = new Meter();
            return me.GetMeterByEpcNo(epcno);
        }
    }
}
